@babel/plugin-transform-react-display-name
@babel/plugin-transform-react-jsx
@babel/plugin-transform-react-jsx-self
@babel/plugin-transform-react-jsx-source
Parse src
to use as a pragma
or pragmaFrag
in jsx.
This pass adds a /*#PURE#/ annotation to calls to known pure top-level
React methods, so that terser and other minifiers can safely remove them
during dead code elimination.
See https://reactjs.org/docs/react-api.html
@babel/preset-react
react-refresh/babel
https://github.com/facebook/react/blob/main/packages/react-refresh/src/ReactFreshBabelPlugin.js